import $api from './index.js'

//获取角色权限
export const getAllRoles = async (data)=>{
    const res = await $api.post('/roles/getAllRoles',data)
    return res
}
//添加角色权限
export const addRoles = async (data)=>{
    const res = await $api.post('/roles/addRoles',data)
    return res
}
//删除角色权限
export const delRoles = async (data)=>{
    const res = await $api.post('/roles/delRoles',data)
    return res
}